package com.GDOU.mapper;

import com.GDOU.bean.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentMapper {
    //学生登录
    Student checkByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    //添加学生
    int addStudent(Student student);

    //删除学生
    int deleteStudent(@Param("stuNum") String stuNum);

    //修改学生
    int updateStudent(Student student);

    //查询所有学生
    List<Student> getAllStudent();

    //通过姓名查询学生信息
    Student getStudentByName(@Param("stuName") String stuName);
}
